from django.contrib import admin
from first.models import PurchaseM, PurchaseDetail

# Register your models here.
class PurchaseMAdmin(admin.ModelAdmin):
    list_display = ['title', 'buyer', 'supplier', 'call', 'time']


admin.site.register(PurchaseM, PurchaseMAdmin)


class PurchaseDAdmin(admin.ModelAdmin):
    list_display = ['name', 'number', 'unit', 'price', 'Mid_id']


admin.site.register(PurchaseDetail, PurchaseDAdmin)
admin.site.site_header = 'SANKU Shop Admin'
admin.site.site_title = 'fruit backend'

